﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UM_SERVER.ProcessModel;

namespace UM_SERVER.Triggers.TriggerObject
{
    /// <summary>
    ///     用户上线触发器
    /// </summary>
    class UserOnlineTrigger : BaseTrigger
    {
        /// <summary>
        ///     用户上线触发器
        /// </summary>
        /// <param name="Key">唯一标示</param>
        public UserOnlineTrigger(String Key) : base(Key)
        {
        }

        public  override void Trigger()
        {
            throw new NotImplementedException();
        }

        public void Trigger(String username)
        {
            TriggersProcessModel.Boardcast_UserOnlineMessage(username);
        }
    }
}
